package com.yanlight.app.request;

import java.util.SortedMap;
import java.util.TreeMap;

public class WxTransfersRequest {

    private String mch_appid;

    private String mchid;

    private String nonce_str;

    private String sign;

    private String partner_trade_no;

    private String openid;

    private String check_name = "NO_CHECK";

    private Integer amount;

    private String desc = "转盘抽奖";

    private String spbill_create_ip;

    public SortedMap<String, String> setupParams() {
        SortedMap<String, String> paramsMap = new TreeMap<>();
        paramsMap.put("nonce_str", getNonce_str());
        paramsMap.put("mch_appid", getMch_appid());
        paramsMap.put("mchid", getMchid());
        paramsMap.put("partner_trade_no", getPartner_trade_no());
        paramsMap.put("openid", getOpenid());
        paramsMap.put("check_name", getCheck_name());
        paramsMap.put("amount", getAmount() + "");
        paramsMap.put("desc", getDesc());
        paramsMap.put("spbill_create_ip", getSpbill_create_ip());
        return paramsMap;
    }

    public String getMch_appid() {
        return mch_appid;
    }

    public void setMch_appid(String mch_appid) {
        this.mch_appid = mch_appid;
    }

    public String getMchid() {
        return mchid;
    }

    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String getNonce_str() {
        return nonce_str;
    }

    public void setNonce_str(String nonce_str) {
        this.nonce_str = nonce_str;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getPartner_trade_no() {
        return partner_trade_no;
    }

    public void setPartner_trade_no(String partner_trade_no) {
        this.partner_trade_no = partner_trade_no;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public String getCheck_name() {
        return check_name;
    }

    public void setCheck_name(String check_name) {
        this.check_name = check_name;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getSpbill_create_ip() {
        return spbill_create_ip;
    }

    public void setSpbill_create_ip(String spbill_create_ip) {
        this.spbill_create_ip = spbill_create_ip;
    }
}
